from io import StringIO
import os

f = StringIO()
f.write("hello")
f.write(" ")
f.write("world!")
print(f.getvalue())

import json

d = dict(name="bob", age=20, gender='男')
j = json.dumps(d)
print(j)
# json.loads(j)
